import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from "./router/index.ts";
import pinia from "./stores/index.ts";
// 引入全局组件配置
import Components from "@/components/index.ts";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
// SVG插件配置
import "virtual:svg-icons-register";
import "uno.css";
const app= createApp(App)
// 注册ElementPlus所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(pinia);
app.use(ElementPlus, { locale: zhCn });
app.use(Components).use(router).mount('#app')
